package iconSwingStates.Transitions;

import iconSwingStates.StateMachine.SMIconStateMachine;
/**
 * TPress represents the transition fired by a pressed button
 * @author uribe-gaget
 *
 */
public class TPress extends TTransition{

	/**
	 * Default constructor
	 * @param nomTransition name of the transition
	 * @param pointer Name of the pointer
	 * @param obligatory True if the slot must be connected
	 * @param outputState The output state
	 */
	public TPress(String nomTransition, String pointer, boolean obligatory,String outputState) {
		super(nomTransition,pointer, SMIconStateMachine.BOOLEAN,obligatory,outputState);
	}
	/**
	 * Default constructor
	 * @param nomTransition name of the transition
	 * @param pointer Name of the pointer
	 * @param obligatory True if the slot must be connected
	 */
	public TPress(String nomTransition, String pointer, boolean obligatory) {
		super(nomTransition,pointer, SMIconStateMachine.BOOLEAN,obligatory);
	}

	/**
	 * Constructor with more than one slot
	 * @param nomTransition name of the transition
	 * @param pointer Name of the pointer
	 * @param type Type of the slot
	 * @param obligatory True if the slot must be connected
	 * @param synchro True if the slots activity must be synchronized
	 */
	public TPress(String nomTransition,String pointer, int[] type, boolean obligatory,
			boolean synchro) {
		super(nomTransition,pointer, type, obligatory, synchro);
	}
	/**
	 * Constructor with more than one slot
	 * @param nomTransition name of the transition
	 * @param pointer Name of the pointer
	 * @param type Type of the slot
	 * @param obligatory True if the slot must be connected
	 * @param synchro True if the slots activity must be synchronized
	 * @param outputState The output state
	 */
	public TPress(String nomTransition,String pointer,  int[] type, boolean obligatory,
			boolean synchro, String outputState) {
		super(nomTransition, type, obligatory, synchro);
	}

}
